package com.whut.whutmall.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/*
远程调用coupon服务
1、引入open-feign
2、编写一个接口，告诉SpringCloud这个接口需要远程调用
    声明接口的每一个方法，地址要是完整地址
3、开启远程调用功能
 */

@EnableFeignClients(basePackages = "com.whut.whutmall.member.feign")
@EnableDiscoveryClient
@SpringBootApplication
public class WhutmallMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(WhutmallMemberApplication.class, args);
    }

}
